PEGetNSubreportsInSection

Use PEGetNSubreportsInSection to determines the number of subreports in the specified section.

C Syntax
short CRPE_API PEGetNSubreportsInSection (
        short printJob,
        short sectionCode );
Parameters

print job

Specifies the primary report from which you want to retrieve information about the number of subreports in a section.

sectionCode

Specifies the Section Codes, of the section for which you want a subreport count. See Working with section codes.

Returns
Remarks

sectionCode can be retrieved using PEGetSectionCode.

VB Syntax

VB Sample Code for modifying Subreports

Declare Function PEGetNSubreportsInSection Lib "crpe32.dll" (
    ByVal printJob As Integer, ByVal sectionCode As Integer ) As Integer
Delphi Syntax

Delphi code for getting subreport information

function PEGetNSubreportsInSection (
    printJob: Word;
    sectionCode: Smallint
    ): Smallint stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com